package basis.ioc.consDI;

public class Customer {
    private IBread b;

    public Customer(IBread b) {
        this.b = b;
    }

    public void buyABread() {
        b.sold();
    }
}
